//分类列表展示的数据类型
// {
//   "id": 0,
//   "name": "string"
// }

//分类项
export interface CategoryItem {
  id: number;
  name: "string";
}

//分类列表
export type CategoryList = CategoryItem[];

//属性列表数据返回值
// {
//   "id": 106,
//   "attrName": "手机系统",
//   "categoryId": 2,
//   "categoryLevel": 1,
//   "attrValueList": [
//     {
//       "id": 176,
//       "valueName": "安卓手机",
//       "attrId": 106
//     },
//     {
//       "id": 175,
//       "valueName": "苹果手机",
//       "attrId": 106
//     }
//   ]
// },

export interface AttrValueItem {
  id?: number;
  valueName: string;
  attrId?: number;
  showInput?: boolean;
}

export type AttrValueList = AttrValueItem[];

export interface AttrListItem {
  id?: number;
  attrName: string;
  categoryId?: number;
  categoryLevel?: number;
  attrValueList: AttrValueList;
}
export type AttrListData = AttrListItem[];

/**
 * {
  "attrName": "string",
  "attrValueList": [
    {
      "attrId": 0,
      "id": 0,
      "valueName": "string"
    }
  ],
  "categoryId": 0,
  "categoryLevel": 0,
  "id": 0
}
 */
